/**
 * 存档
 */
cc.Class({
    extends: cc.Component,

    properties: {

    },


    // onLoad () {},

    start() {

    },

    onBeginContact: function (contact, selfCollider, otherCollider) {
        //播放存档点动画，关闭碰撞监听
        if (otherCollider.tag === cc.vv.TAG.HERO) {
            cc.vv.currentPos = otherCollider.node.getPosition();
            selfCollider.node.getComponent(cc.Animation).play("savePoint");
            selfCollider.node.getComponent(cc.RigidBody).enabledContactListener = false;
        }
    },


    update(dt) {

    },
});
